<!DOCTYPE HTML>
<html lang="zh-CN">






<head>
    <!--让百度解析-->
    <meta name="baidu-site-verification" content="code-BwRMg6yW1H" />

    <meta charset="utf-8">


    <meta name="keywords" content="面试笔试题整理, keys">
    <meta name="description" content="站长很懒，什么都没有留下....">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <!-- Global site tag (gtag.js) - Google Analytics -->


    <title>面试笔试题整理 | 张小菜</title>
    <link rel="icon" type="image/gif" style="width: 100%;height: 100%;" href="/../../images/logoOne.gif">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/all.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">

    <script src="/libs/jquery/jquery.min.js"></script>

    <!--雪花飘落代码块-->
    

    <!--樱花飘落代码块-->
    

    <!--点击显示文字效果-->
    
        <script type="text/javascript">
          //只在桌面版网页启用特效
          var windowWidth = $(window).width();
          if (windowWidth > 768) {
            document.write('<script type="text/javascript" src="/js/wenzi.js"><\/script>');
        }
    </script>
    


<meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/atom.xml" title="张小菜" type="application/atom+xml">
<link rel="stylesheet" href="/css/prism-tomorrow.css" type="text/css"></head>



   <style>
    body{
       background-image: url('/medias/background.jpg');
       background-repeat:no-repeat;
       background-size:cover;
       background-attachment:fixed;
    }
</style>




<body>
    <header class="navbar-fixed">
    <script>
        /*这段代码用于百度统计植入代码*/
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?851ba41937b8a3d4d644c8216f055c91";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>

    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="nav-wrapper container">
            <div class="brand-logo">
                <a href="/" class="waves-effect waves-light">
                    
                    <img src="/../../images/logoOne.gif" class="logo-img" alt="LOGO">
                    
                    <span class="logo-span">张小菜</span>
                </a>
            </div>
            

<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
    
        <li class="hide-on-med-and-down nav-item">
            
                <a href="/" class="waves-effect waves-light">
                    
                        <i class="fas fa-home" style="zoom: 0.6;"></i>
                    
                    <span>首页</span>
                </a>
            
        </li>
    
        <li class="hide-on-med-and-down nav-item">
            
                <a href="/tags" class="waves-effect waves-light">
                    
                        <i class="fas fa-tags" style="zoom: 0.6;"></i>
                    
                    <span>标签</span>
                </a>
            
        </li>
    
        <li class="hide-on-med-and-down nav-item">
            
                <a href="/categories" class="waves-effect waves-light">
                    
                        <i class="fas fa-bookmark" style="zoom: 0.6;"></i>
                    
                    <span>分类</span>
                </a>
            
        </li>
    
        <li class="hide-on-med-and-down nav-item">
            
                <a href="/archives" class="waves-effect waves-light">
                    
                        <i class="fas fa-archive" style="zoom: 0.6;"></i>
                    
                    <span>归档</span>
                </a>
            
        </li>
    
        <li class="hide-on-med-and-down nav-item">
            
                <a href="/about" class="waves-effect waves-light">
                    
                        <i class="fas fa-user-circle" style="zoom: 0.6;"></i>
                    
                    <span>关于</span>
                </a>
            
        </li>
    
        <li class="hide-on-med-and-down nav-item">
            
                <a target="_blank" rel="noopener" href="https://www.zdzn.net/" class="waves-effect waves-light">
                    
                        <i class="fas fa-comments" style="zoom: 0.6;"></i>
                    
                    <span>聚宝盒</span>
                </a>
            
        </li>
    
        <li class="hide-on-med-and-down nav-item">
            
                <a href="" class="waves-effect waves-light">

                    
                        <i class="fa fa-heartbeat" style="zoom: 0.6;"></i>
                    
                    <span>功能</span>
                    <i class="fas fa-chevron-down" aria-hidden="true" style="zoom: 0.6;"></i>
                </a>
                <ul class="sub-nav menus_item_child ">
                    
                        <li>
                            <a target="_blank" rel="noopener" href="http://43.138.208.196:8080/examsSystem/index.jsp">
                                
                                    <i class="fab fa-codepen" style="margin-top: -20px; zoom: 0.6;"></i>
                                
                                <span>考试系统</span>
                            </a>
                        </li>
                    
                        <li>
                            <a target="_blank" rel="noopener" href="http://43.138.208.196/page/login.html">
                                
                                    <i class="fab fa-dev" style="margin-top: -20px; zoom: 0.6;"></i>
                                
                                <span>shell-web</span>
                            </a>
                        </li>
                    
                        <li>
                            <a target="_blank" rel="noopener" href="http://43.138.208.196:8081/html/Login.html">
                                
                                    <i class="fab fa-artstation" style="margin-top: -20px; zoom: 0.6;"></i>
                                
                                <span>基金系统</span>
                            </a>
                        </li>
                    
                        <li>
                            <a href="http://zhangxiaocainb.gitee.io/music-player">
                                
                                    <i class="fa fa-music" style="margin-top: -20px; zoom: 0.6;"></i>
                                
                                <span>我的音乐</span>
                            </a>
                        </li>
                    
                </ul>
            
        </li>
    
    <li>
        <a href="#searchModal" class="modal-trigger waves-effect waves-light">
            <i id="searchIcon" class="fas fa-search" title="搜索" style="zoom: 0.85;"></i>
        </a>
    </li>
</ul>


<div id="mobile-nav" class="side-nav sidenav">

    <div class="mobile-head bg-color">
        
        <img src="/../../images/logoOne.gif" class="logo-img circle responsive-img">
        
        <div class="logo-name">张小菜</div>
        <div class="logo-desc">
            
            站长很懒，什么都没有留下....
            
        </div>
    </div>

    

    <ul class="menu-list mobile-menu-list">
        
        <li class="m-nav-item">
	  
		<a href="/" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-home"></i>
			
			首页
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/tags" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-tags"></i>
			
			标签
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/categories" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-bookmark"></i>
			
			分类
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/archives" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-archive"></i>
			
			归档
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/about" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-user-circle"></i>
			
			关于
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a target="_blank" rel="noopener" href="https://www.zdzn.net/" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-comments"></i>
			
			留言板
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="javascript:;">
			
				<i class="fa-fw fa fa-heartbeat"></i>
			
			Functions
			<span class="m-icon"><i class="fas fa-chevron-right"></i></span>
		</a>
            <ul  style="background:  ;" >
              
                <li>

                  <a target="_blank" rel="noopener" href="http://43.138.208.196:8080/examsSystem/index.jsp " style="margin-left:75px">
				  
				   <i class="fa fab fa-codepen" style="position: absolute;left:50px" ></i>
			      
		          <span>考试系统</span>
                  </a>
                </li>
              
                <li>

                  <a target="_blank" rel="noopener" href="http://43.138.208.196/page/login.html " style="margin-left:75px">
				  
				   <i class="fa fab fa-dev" style="position: absolute;left:50px" ></i>
			      
		          <span>shell-web</span>
                  </a>
                </li>
              
                <li>

                  <a target="_blank" rel="noopener" href="http://43.138.208.196:8081/html/Login.html " style="margin-left:75px">
				  
				   <i class="fa fab fa-artstation" style="position: absolute;left:50px" ></i>
			      
		          <span>基金系统</span>
                  </a>
                </li>
              
                <li>

                  <a href="http://zhangxiaocainb.gitee.io/music-player " style="margin-left:75px">
				  
				   <i class="fa fa fa-music" style="position: absolute;left:50px" ></i>
			      
		          <span>我的音乐</span>
                  </a>
                </li>
              
            </ul>
          
        </li>
        
        
    </ul>
</div>


        </div>

        
    </nav>

</header>

    
<script src="/libs/cryptojs/crypto-js.min.js"></script>
<script>
    (function() {
        let pwd = '';
        if (pwd && pwd.length > 0) {
            if (pwd !== CryptoJS.SHA256(prompt('该文章需要密码才能访问哦！')).toString(CryptoJS.enc.Hex)) {
                alert('密码错误，将返回主页！');
                location.href = '/';
            }
        }
    })();
</script>




<div class="bg-cover pd-header post-cover" style="background-image: url('/medias/featureimages/2.jpg')">
    <div class="container" style="right: 0px;left: 0px;">
        <div class="row">
            <div class="col s12 m12 l12">
                <div class="brand">
                    <h1 class="description center-align post-title">面试笔试题整理</h1>
                </div>
            </div>
        </div>
    </div>
</div>




<main class="post-container content">

    
    <link rel="stylesheet" href="/libs/tocbot/tocbot.css">
<style>
    #articleContent h1::before,
    #articleContent h2::before,
    #articleContent h3::before,
    #articleContent h4::before,
    #articleContent h5::before,
    #articleContent h6::before {
        display: block;
        content: " ";
        height: 100px;
        margin-top: -100px;
        visibility: hidden;
    }

    #articleContent :focus {
        outline: none;
    }

    .toc-fixed {
        position: fixed;
        top: 64px;
    }

    .toc-widget {
        width: 345px;
        padding-left: 20px;
    }

    .toc-widget .toc-title {
        padding: 35px 0 15px 17px;
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    .toc-widget ol {
        padding: 0;
        list-style: none;
    }

    #toc-content {
        padding-bottom: 30px;
        overflow: auto;
    }

    #toc-content ol {
        padding-left: 10px;
    }

    #toc-content ol li {
        padding-left: 10px;
    }

    #toc-content .toc-link:hover {
        color: #42b983;
        font-weight: 700;
        text-decoration: underline;
    }

    #toc-content .toc-link::before {
        background-color: transparent;
        max-height: 25px;

        position: absolute;
        right: 23.5vw;
        display: block;
    }

    #toc-content .is-active-link {
        color: #42b983;
    }

    #floating-toc-btn {
        position: fixed;
        right: 15px;
        bottom: 76px;
        padding-top: 15px;
        margin-bottom: 0;
        z-index: 998;
    }

    #floating-toc-btn .btn-floating {
        width: 48px;
        height: 48px;
    }

    #floating-toc-btn .btn-floating i {
        line-height: 48px;
        font-size: 1.4rem;
    }
</style>
<div class="row">
    <div id="main-content" class="col s12 m12 l9">
        <!-- 文章内容详情 -->
<div id="artDetail">
    <div class="card">
        <div class="card-content article-info">
            <div class="row tag-cate">
                <div class="col s7">
                    
                    <div class="article-tag">
                        
                            <a href="/tags/%E9%9D%A2%E8%AF%95%E9%A2%98/">
                                <span class="chip bg-color">面试题</span>
                            </a>
                        
                    </div>
                    
                </div>
                <div class="col s5 right-align">
                    
                </div>
            </div>

            <div class="post-info">
                
                <div class="post-date info-break-policy">
                    <i class="far fa-calendar-minus fa-fw"></i>发布日期:&nbsp;&nbsp;
                    2021-09-12
                </div>
                

                
                <div class="post-date info-break-policy">
                    <i class="far fa-calendar-check fa-fw"></i>更新日期:&nbsp;&nbsp;
                    2021-11-20
                </div>
                

                
                <div class="info-break-policy">
                    <i class="far fa-file-word fa-fw"></i>文章字数:&nbsp;&nbsp;
                    3.5k
                </div>
                

                
                <div class="info-break-policy">
                    <i class="far fa-clock fa-fw"></i>预计阅读时长:&nbsp;&nbsp;
                    13 分
                </div>
                

                
                    <div id="busuanzi_container_page_pv" class="info-break-policy">
                        <i class="far fa-eye fa-fw"></i>阅读次数:&nbsp;&nbsp;
                        <span id="busuanzi_value_page_pv"></span>
                    </div>
				
            </div>
        </div>
        <hr class="clearfix">

        

        

        <div class="card-content article-card-content">
            <div id="articleContent">
                <h1 id="面试题笔试题总结"><a href="#面试题笔试题总结" class="headerlink" title="面试题笔试题总结"></a>面试题笔试题总结</h1><p>##目录一</p>
<h3 id="第一题"><a href="#第一题" class="headerlink" title="第一题"></a>第一题</h3><p><img src="/images/interviewimage/sql1.png" alt="sql1"></p>
<p>这一题要求所有学生学号都显示出来，但是部分学生却又没有成绩，普通的连表肯定不行，所有选择左连接，将a表放在左边，答案如下:</p>
<pre class=" language-mysql"><code class="language-mysql">SELECT * FROM aTable a LEFT JOIN bTable b ON a.stuNo = b.stuNo;
</code></pre>
<h3 id="第二题"><a href="#第二题" class="headerlink" title="第二题"></a>第二题</h3><p><img src="/images/interviewimage/sql2.png" alt="sql2"></p>
<p>要求将两个表的相同字段连接输出，连表后通过concat聚合函数进行拼接，正确答案如下:</p>
<pre class=" language-mysql"><code class="language-mysql">SELECT CONCAT(a.stuNo,'-',b.stuNo) AS f1,CONCAT(a.stuName,'-',b.stuResult) AS f2 FROM aTable a JOIN bTable b ON a.stuNo=b.stuNo;
</code></pre>
<h3 id="第三题"><a href="#第三题" class="headerlink" title="第三题"></a>第三题</h3><p><img src="/images/interviewimage/java1.png" alt="java1"></p>
<p>2^31(2的31次幂)，2^-31(3的负32次幂)，int类型占4个字节，一个字节8位，4*8=32，每一个位分别有两种状态(0和1)，所以他们的组合状态可以有2^31次幂/2^-32次幂，可能有同学会疑问为什么不是2^32次幂而是2^31次幂呢，那是应为位数从0开始：0-31。</p>
<h3 id="第三题-1"><a href="#第三题-1" class="headerlink" title="第三题"></a>第三题</h3><p><img src="/images/interviewimage/java2.png" alt="java2"></p>
<p>分析如下: </p>
<pre class=" language-java"><code class="language-java"><span class="token keyword">boolean</span> <span class="token function">check1</span><span class="token punctuation">(</span><span class="token keyword">byte</span> b<span class="token punctuation">)</span><span class="token punctuation">{</span>
    <span class="token keyword">return</span> <span class="token punctuation">(</span><span class="token number">0xEE</span> <span class="token operator">==</span> b<span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment" spellcheck="true">//首先0x开头表示16进制，EE 十进制为 14 14 转换为二进制为 0111 0111 </span>
<span class="token punctuation">}</span>
<span class="token keyword">boolean</span> <span class="token function">check2</span><span class="token punctuation">(</span><span class="token keyword">byte</span> b<span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token comment" spellcheck="true">//此时b为 0111 0111</span>
    <span class="token keyword">return</span> <span class="token punctuation">(</span><span class="token number">0xEE</span> <span class="token operator">==</span> <span class="token punctuation">(</span>b <span class="token operator">&amp;</span> <span class="token number">0xFF</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment" spellcheck="true">//(b &amp; 0xFF) 0111 0111 &amp; 1111 1111 = 0111 0111 任然是b </span>
<span class="token punctuation">}</span>
<span class="token comment" spellcheck="true">//两组布尔值都是返回true，第二组加了&amp;运算符，本博客标签“HashMap”中的文章有详细介绍各种位运算.</span>
<span class="token comment" spellcheck="true">//该题的答案考点是&amp;运算符的设计初衷，这里博主还没有找到合适的答案，如有大佬知道，请评论issue，先行跪谢^,^</span>
</code></pre>
<h3 id="第四题"><a href="#第四题" class="headerlink" title="第四题"></a>第四题</h3><p><img src="/images/interviewimage/java3.png" alt="java3"></p>
<p>总结出四种：</p>
<h5 id="通过”-”拼接："><a href="#通过”-”拼接：" class="headerlink" title="通过”+”拼接："></a>通过”+”拼接：</h5><p>底层编译后使用的是StringBuilder.append()方法在拼接，在循环当中每拼接一次+等同于创建一个StringBuilder对象，在数据量多的情况下效率低下</p>
<h5 id="String-concat-方法拼接"><a href="#String-concat-方法拼接" class="headerlink" title="String.concat()方法拼接:"></a>String.concat()方法拼接:</h5><p>底层方法是native修饰无法深入研究，但已知的是每调用一次该方法都会new String()，如此下来多次调用该方法效率也不高</p>
<h5 id="StringBuffer-append-方法拼接："><a href="#StringBuffer-append-方法拼接：" class="headerlink" title="StringBuffer.append()方法拼接："></a>StringBuffer.append()方法拼接：</h5><p>StringBuffer.append()和String.concat()方法类似，底层是通过native实现，但是StringBuffer.append返回是不需要new String对象而是返回this本身，因此效率高于concat()</p>
<h5 id="StringBuilder-apped-方法拼接："><a href="#StringBuilder-apped-方法拼接：" class="headerlink" title="StringBuilder.apped()方法拼接："></a>StringBuilder.apped()方法拼接：</h5><p>StringBuilder和StringBuffer的append()方法的实现一样，但是二者StringBuilder线程安全StringBuffer线程非安全，自然是线程安全的效率更高</p>
<h3 id="第五题"><a href="#第五题" class="headerlink" title="第五题"></a>第五题</h3><p><img src="/images/interviewimage/java4.png" alt="java4"></p>
<p>Array.sort()，Collections.sort()，comparable，comparator，其中Collections.sort()可自定义排序规则，本博客对该方法有过一个文章讲解</p>
<h3 id="第六题"><a href="#第六题" class="headerlink" title="第六题"></a>第六题</h3><p><img src="/images/interviewimage/java5.png" alt="java5"></p>
<h5 id="第一解："><a href="#第一解：" class="headerlink" title="第一解："></a>第一解：</h5><p>继承Thread类实现run()方法或者实现Runnable接口实现run()方法</p>
<h5 id="第二解："><a href="#第二解：" class="headerlink" title="第二解："></a>第二解：</h5><p>为保证数据的一致性可以变量上加上valotile修饰</p>
<h5 id="第三解："><a href="#第三解：" class="headerlink" title="第三解："></a>第三解：</h5><p>不仅可以在变量上加valotile，还可以在方法上加synchronizable，好像通过LocalThread也可以，不过博主太菜&gt;.&lt;，<strong>立个flag(学习synchronizable和LocalThread底层)</strong></p>
<h3 id="第七题"><a href="#第七题" class="headerlink" title="第七题"></a>第七题</h3><p><img src="/images/interviewimage/java6.png" alt="java6"></p>
<h5 id="解一："><a href="#解一：" class="headerlink" title="解一："></a>解一：</h5><p>post请求参数存放在请求体，而get请求参数在请求头</p>
<p>post请求参数无限制，get请求参数限制不能超过255个字符</p>
<p>post请求参数可以是文本也可以是二进制，而get请求参数只能为文本</p>
<p>post请求后不会有历史缓存，而get会有缓存记录</p>
<h5 id="解二："><a href="#解二：" class="headerlink" title="解二："></a>解二：</h5><p>response.setCharacterEncoding(“UTF-8”);也可以通过配置文件配置字符过滤处理。</p>
<h3 id="第八题"><a href="#第八题" class="headerlink" title="第八题"></a>第八题</h3><p><img src="/images/interviewimage/java7.png" alt="java7"></p>
<p>继承ServletHttp实现init()初始化方法调用静态函数，如果这个静态函数是个静态代码块的话可以配置一个监听器类，监听tomcat的启动并加载该监听器类，加载该类时会自动执行静态代码块。</p>
<h3 id="第九题"><a href="#第九题" class="headerlink" title="第九题"></a>第九题</h3><p><img src="/images/interviewimage/java8.png" alt="java8"></p>
<p>在前端通过post请求发送方式，并且在传输数据的时候要做加密处理，在后端我们通过响应对象的response.getParamter(参数名)来接收传递的参数。</p>
<h3 id="第十题"><a href="#第十题" class="headerlink" title="第十题"></a>第十题</h3><p><img src="/images/interviewimage/java9.png" alt="java9"></p>
<p>按博主的浅智来回答的话，只能则中则中再则中，相当于树形结构的二分查找法，100楼，预计6个玻璃球既可以找到位置，但是细细的想还是觉得不妥，于是上网查了一下，果然：</p>
<p><img src="/images/interviewimage/java10.png" alt="java10"></p>
<p>是我大意了，接下来的答案虽然不是很让我满意(因为它不属于我)，但我还是坚持给出来，希望能对大家有所帮助:</p>
<p><img src="/images/interviewimage/java11.png" alt="java11"></p>
<p>最后作者给出每14层一次效率最高，呼~</p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/351999559">参考链接</a></p>
<h3 id="第十二题"><a href="#第十二题" class="headerlink" title="第十二题"></a>第十二题</h3><p><img src="/images/interviewimage/java12.png" alt="java12"></p>
<p>二分必死题，但是类似这种题都要写公式，我只能以最通俗的方式解释：</p>
<p>首先取出4个，然后4-4称(如果等重说明坏球在取出的4个当中，取出2个，1-1即可得出)，4-4不等重的话再取出两个，2-2称(如果等重说明在取出的4个当中)，2-2不等重则可以拿出一好一坏，刚好三次</p>
<h3 id="第十三题"><a href="#第十三题" class="headerlink" title="第十三题"></a>第十三题</h3><p><img src="/images/interviewimage/java13.png" alt="java13"></p>
<p>这….这样吧，把玻璃瓶尿满，然后游出来….，哈哈哈哈哈哈开玩笑开玩笑，这个题考的不就是发散思维嘛，不要被困住了，千万不要想着怎么爬出去怎么跳出去，否则就是在强行解题，万一面试官让你当场试试就可以甩门出去了，这样，题目的约束只有两倍身高的玻璃容器，是否可以推到玻璃瓶呢，是否可以砸碎玻璃瓶呢，或者说向外呼救，打个电话报警？等等等等，想到什么就说什么，如果这个题真的有准确答案的话，那么笔者浅知了，快评论起来吧！</p>
<h3 id="第十四题"><a href="#第十四题" class="headerlink" title="第十四题"></a>第十四题</h3><p><img src="/images/interviewimage/java14.png" alt="java14"></p>
<p>不要说太多违心的话，否则会把面试官逗笑&gt;,&lt;，如果是我：加班是一种企业文化，著名的经济家马老师说过：加班是当代年轻人的一种福报，所以我接受加班，我愿意花更多时间为公司创造价值，同时也能提升自己。</p>
<h3 id="第十五题"><a href="#第十五题" class="headerlink" title="第十五题"></a>第十五题</h3><p><img src="/images/interviewimage/java15.png" alt="java15"></p>
<p>这长久以来最值得让自己骄傲的就是每天坚持学习！</p>
<h3 id="第十六题"><a href="#第十六题" class="headerlink" title="第十六题"></a>第十六题</h3><p><img src="/images/interviewimage/java16.png" alt="java16"></p>
<p>抽烟、熬夜、购物、大手大脚，这是列举，这些缺点对他们公司没有影响，也没有影响你以后进入他们公司创造价值，说嗜烟说明能勤于思考问题，说熬夜说明加的了班，说购物大手大脚说明月光不懂得节省，缺钱好使唤，不敢失业也不敢跳槽</p>
<h3 id="第十七题"><a href="#第十七题" class="headerlink" title="第十七题"></a>第十七题</h3><p><img src="/images/interviewimage/java17.png" alt="java17"></p>
<p>在HashMap篇章中我重点对HashMap相关的面试题都讲解了的，这里还是复制过来，有兴趣的可以去找HashMap篇(在文字标签中找HashMap就行，或者查询HashMap)</p>
<h5 id="解"><a href="#解" class="headerlink" title="解:"></a>解:</h5><p>相同点：都是按键值对存储的集合</p>
<p>不同点：</p>
<p>HashMap允许Key和Value可以为null,但HashTable不允许</p>
<p>HashMap没有考虑同步，是线程非安全的，HashTable考虑同步，线程安全，它的api都加了synchronized锁</p>
<p>HashMap通过实现Abstract接口，HashTable通过实现Dictionary接口</p>
<p>HashMap在不考虑线程安全的情况下效率高于HashTable,HashTable则可以应对线程安全问题，各有各的优点</p>
<p>迭代机制不同，HashMap迭代值fail-fast,在遍历的同时不能更改结构，否则会报错，但HashTable不会</p>
<p>初始化容量不同，HashMap初始化容量为16，hashTable初始容量为11，但负载因子相同，都是0.75</p>
<p>扩容机制不同，HashMap扩容时翻一倍，HashTable扩容时翻一倍并且+1</p>
<p>注明：能回答出前四条面试官已经很满意了吧，如果后三条也能回答出来，面试官眼睛会发光的哈哈哈哈，所以我想说的是，如果记不了就记前三条好啦</p>
<h3 id="第十八题"><a href="#第十八题" class="headerlink" title="第十八题"></a>第十八题</h3><p><img src="/images/interviewimage/java18.png" alt="java18"></p>
<p>这个我们老师以前讲过还记得特别清楚。</p>
<h5 id="解："><a href="#解：" class="headerlink" title="解："></a>解：</h5><p>URL路径参数方式</p>
<p>表单传值方式</p>
<p>cookie方式</p>
<p>session方式</p>
<h3 id="第十九题"><a href="#第十九题" class="headerlink" title="第十九题"></a>第十九题</h3><p><img src="/images/interviewimage/java19.png" alt="java19"></p>
<p>String底层是通过char[]数组保存，其通过final修饰，所以长度一旦确定就不可变</p>
<p>StringBuffer底层也是char[]实现，但长度可变，加了同步锁，线程安全，继承自AbstractStringBuilder</p>
<p>StringBuilder底层也是char[]实现，长度可变，线程非安全，固然效率高于StringBuffer，继承自AbstractStringBuilder</p>
<p>##目录二</p>
<h3 id="第二十题"><a href="#第二十题" class="headerlink" title="第二十题"></a>第二十题</h3><p><img src="/images/interviewimage/20.png" alt="20"></p>
<p>说实话还记得一个cd…..，在博客聚宝盒当中可以找到linux相关命令集合！<a target="_blank" rel="noopener" href="https://doc.zdzn.net/cheatsheet/linux.html#linux%E6%96%87%E4%BB%B6%E5%92%8C%E7%9B%AE%E5%BD%95">路径</a></p>
<h3 id="第二十一题"><a href="#第二十一题" class="headerlink" title="第二十一题"></a>第二十一题</h3><p><img src="/images/interviewimage/java21.png" alt="java21"></p>
<pre class=" language-java"><code class="language-java">    <span class="token keyword">public</span> <span class="token keyword">static</span> <span class="token keyword">void</span> <span class="token function">main</span><span class="token punctuation">(</span>String<span class="token punctuation">[</span><span class="token punctuation">]</span> args<span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">int</span><span class="token punctuation">[</span><span class="token punctuation">]</span> arr <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token number">6</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">,</span><span class="token number">8</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">9</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
        <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">int</span> i <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> i <span class="token operator">&lt;</span> arr<span class="token punctuation">.</span>length<span class="token punctuation">;</span> i<span class="token operator">++</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">for</span><span class="token punctuation">(</span><span class="token keyword">int</span> j <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> j <span class="token operator">&lt;</span> arr<span class="token punctuation">.</span>length<span class="token operator">-</span>i<span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">;</span> j<span class="token operator">++</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>arr<span class="token punctuation">[</span>j<span class="token punctuation">]</span><span class="token operator">></span>arr<span class="token punctuation">[</span>j<span class="token operator">+</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                    <span class="token keyword">int</span> max <span class="token operator">=</span> arr<span class="token punctuation">[</span>j<span class="token punctuation">]</span><span class="token punctuation">;</span>
                    arr<span class="token punctuation">[</span>j<span class="token punctuation">]</span> <span class="token operator">=</span> arr<span class="token punctuation">[</span>j<span class="token operator">+</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                    arr<span class="token punctuation">[</span>j<span class="token operator">+</span><span class="token number">1</span><span class="token punctuation">]</span> <span class="token operator">=</span> max<span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">int</span> i <span class="token operator">:</span> arr<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            System<span class="token punctuation">.</span>out<span class="token punctuation">.</span><span class="token function">println</span><span class="token punctuation">(</span>i<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
</code></pre>
<h3 id="第二十二题"><a href="#第二十二题" class="headerlink" title="第二十二题"></a>第二十二题</h3><p><img src="/images/interviewimage/java22.png" alt="java22"></p>
<p>“==”在比较基础类型的时候比较的是值，比较对象时比较的则是引用，equals()也分为两种情况，在没有重新实现的情况下比较对象时与“==”一样，如果重新了一般就是比较对象内容是否一样。</p>
<h3 id="第二十三题"><a href="#第二十三题" class="headerlink" title="第二十三题"></a>第二十三题</h3><p><img src="/images/interviewimage/java23.png" alt="java23"></p>
<p>100：请求正在处理</p>
<p>200：请求成功响应</p>
<p>300：请求重定向</p>
<p>400：客户端请求发生错误（特别注明：或者是服务器无法正常处理请求，也有可能是服务器未能正常返回值）</p>
<p>500：服务器发生错误</p>
<h3 id="第二十四题"><a href="#第二十四题" class="headerlink" title="第二十四题"></a>第二十四题</h3><p><img src="/images/interviewimage/java24.png" alt="java24"></p>
<p>是不能的,其他线程只能访问该对象的非同步方法,同步方法则不能进入;</p>
<p>​     因为非静态方法上的synchronized修饰符要求执行方法时要获得对象的锁,如果已经进入A方法,说明对象锁已经被取走了,那么试图进入B方法的线程就只能在等锁池(注意这里不是等待池)中等待对象的锁</p>
<h3 id="第二十五题"><a href="#第二十五题" class="headerlink" title="第二十五题"></a>第二十五题</h3><p><img src="/images/interviewimage/java25.png" alt="java25"></p>
<p>Statement是PreparedStatement的父类，二则都是执行sql语句的api，PreparedStatement有占位符，可做预编译，以此防止恶意sql注入，安全性高，在批处理的情况下效率较高，因为相同的语句它不会重新编译，而Statement没有。</p>
<h3 id="第二十六题"><a href="#第二十六题" class="headerlink" title="第二十六题"></a>第二十六题</h3><p><img src="/images/interviewimage/sql3.png" alt="img"></p>
<p>这题考的就是对分组having的使用，答案如下:</p>
<pre class=" language-mysql"><code class="language-mysql">DELETE FROM testTable WHERE id IN(SELECT * FROM (SELECT id FROM testTable GROUP BY empName HAVING COUNT(id)>1) AS alias)
</code></pre>
<p>有同学可能会有疑问，为什么要重复嵌套一层呢，这是因为mysql不支持更新同一表的时候还查询表，这样会导致死锁，所以封装一层，让mysql以为它属于第三方表。</p>
<h3 id="第二十七题"><a href="#第二十七题" class="headerlink" title="第二十七题"></a>第二十七题</h3><p><img src="/images/interviewimage/26.png" alt="26"></p>
<pre class=" language-java"><code class="language-java"><span class="token keyword">public</span> <span class="token keyword">class</span> <span class="token class-name">Test</span><span class="token punctuation">{</span>
    <span class="token keyword">private</span> <span class="token keyword">static</span> <span class="token keyword">volatile</span> Test testFiald<span class="token punctuation">;</span>
    
    <span class="token comment" spellcheck="true">//懒汉单例模式</span>
    <span class="token keyword">public</span> <span class="token keyword">static</span> Test <span class="token function">getTest</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span>testFiald <span class="token operator">==</span> null<span class="token punctuation">)</span><span class="token punctuation">{</span>
            testFiald <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Test</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">return</span> testFiald<span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
    <span class="token comment" spellcheck="true">//光写个懒汉模式还是有点不妥，既然要写就要写个好的</span>
    
    <span class="token comment" spellcheck="true">//双检索单例模式</span>
    <span class="token keyword">public</span> <span class="token keyword">static</span> Test <span class="token function">getTest2</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span>testFiald <span class="token operator">==</span> null<span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token comment" spellcheck="true">//注意在运行的时候这个位置会卡住很多等待锁释放的线程</span>
            <span class="token function">synchronizable</span><span class="token punctuation">(</span>Test<span class="token punctuation">.</span><span class="token keyword">class</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token comment" spellcheck="true">//加了对象锁</span>
                <span class="token keyword">if</span>（testFiald <span class="token operator">==</span> null）<span class="token punctuation">{</span>
                    <span class="token comment" spellcheck="true">//有同学可能会有疑问，为什么里面还需要加一个为空判断,</span>
                    <span class="token comment" spellcheck="true">//除了进来的一个线程其他线程不应该都被锁在外面了吗，</span>
                    <span class="token comment" spellcheck="true">//对，没错，都被锁在外面了，但是里面这个线程创建完毕之后，</span>
                    <span class="token comment" spellcheck="true">//那么testFiald不再为空，等锁释放后，</span>
                    <span class="token comment" spellcheck="true">//下个一个线程则又会创建一个对象，违背了单例，</span>
                    <span class="token comment" spellcheck="true">//所有才又加了一个为空判断，这才有了双检索这个名字</span>
                    testFiald <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Test</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
    
<span class="token punctuation">}</span>
</code></pre>
<h3 id="第二十八题"><a href="#第二十八题" class="headerlink" title="第二十八题"></a>第二十八题</h3><p><img src="/images/interviewimage/java27.png" alt="java27"></p>
<p>#{}属于预编译，处理时会将#{}替换成？，可以防止恶意sql语句，安全性强，类似于如上的StatementPrepared，${}则是会将变量直接转换为字符串，不能防止sql注入，类似于Statement，但是在某些情况下又不得不用${}，比如分页limit，模糊查询等。</p>
<h3 id="第二十九题"><a href="#第二十九题" class="headerlink" title="第二十九题"></a>第二十九题</h3><p><img src="/images/interviewimage/java28.png" alt="java28"></p>
<p>string、list、hash、set、zset</p>
<h3 id="第三十题"><a href="#第三十题" class="headerlink" title="第三十题"></a>第三十题</h3><p><img src="/images/interviewimage/java29.png" alt="java29"></p>
<pre class=" language-java"><code class="language-java">ls：查询目录中的文件
cd<span class="token operator">:</span> 进入下一级目录
cat：打开文本
cp<span class="token operator">:</span> 复制文件
rm <span class="token operator">-</span>rf <span class="token operator">*</span>：删除所有目录以及目录下的文件
tail<span class="token operator">:</span> 查看文件中最后的内容
mkdir：创建文件夹
touch<span class="token operator">:</span> 修改文件或者目录的时间属性，如果该目录不存在则重新创建
find<span class="token operator">-</span>name<span class="token operator">:</span> 查找相同名字的文件
</code></pre>
<h3 id="第三十题-1"><a href="#第三十题-1" class="headerlink" title="第三十题"></a>第三十题</h3><p><img src="/images/interviewimage/java30.png" alt="java30"></p>
<p>常量折叠（是Java在编译期间做的一个优化，简单的来说就是在编译期就把一些表达式计算好，不需要在运行时进行计算），答案：false、true</p>
<pre class=" language-txt"><code class="language-txt">随便复习一下常量折叠规则：
1. 编译时常量（数字字面值，字符串字面值等）。如：1，"hello"
2. 编译时常量进行简单运算的结果也是编译时常量（注意，不是被编译器常量初始化的就不属于编译期常量，例如(2)），如1 + 2，”a”+ “b”。
3. 被 final 修饰的基本类型和字符串变量也是编译时常量。
如：
public class Main {
    static final String a = "a";
    static final String b = "b";
    public static void main(String[] args) {
        String s1= a + b;
        String s2= a + b;
        System.out.println(s1 == s2);
    }
}
输出：true

(2)
public static void main(String[] args) {
    String x ="a";
    final String a = x;//不是被编译期常量初始化的，就不属于编译期常量，很明显在上一步就初始化了
    final String bc = "bc";
    String s1 = "a" + "bc";
    String s2 = a + bc;
    System.out.println(s1 == s2);
}
输出：false
</code></pre>
<h3 id="第三十一题"><a href="#第三十一题" class="headerlink" title="第三十一题"></a>第三十一题</h3><p><img src="/images/interviewimage/java31.png" alt="java31"></p>
<p>HashSet底层用到的是HashMap的key，无序不可重复，使用了“==”和equals来判断重复</p>
<p><img src="/images/interviewimage/java32.png" alt="java32"></p>
<h3 id="第三十二题"><a href="#第三十二题" class="headerlink" title="第三十二题"></a>第三十二题</h3><p><img src="/images/interviewimage/java33.png" alt="java33"></p>
<p>这个题谁要是扯浅拷贝邦邦就是两拳，传了个null进去，出来调size()直接空对象异常，输出这个：NullPointerException</p>
<h3 id="第三十三题"><a href="#第三十三题" class="headerlink" title="第三十三题"></a>第三十三题</h3><p><img src="/images/interviewimage/java34.png" alt="java34"></p>
<p>StringBuilder有个reverse()方法，还可以通过字符串分割重新拼接的方式。</p>
<h3 id="第三十四题"><a href="#第三十四题" class="headerlink" title="第三十四题"></a>第三十四题</h3><p><img src="/images/interviewimage/java35.png" alt="java35"></p>
<pre class=" language-mysql"><code class="language-mysql">select name,sum(score) as scores from stuscore group by name order by scores desc;
</code></pre>
<h3 id="第三十五题"><a href="#第三十五题" class="headerlink" title="第三十五题"></a>第三十五题</h3><p><img src="/images/interviewimage/java36.png" alt="java36"></p>
<pre class=" language-oracle"><code class="language-oracle">create or replace procedure test_pro(vals varchar(10)) is
    v_name varchar2(10):=vals;
begin 
    dbms_output_put_line(v_name);
end;
call test_pro("张小菜");
</code></pre>

                
            </div>
            <hr/>

            

    <div class="reprint" id="reprint-statement">
        
            <div class="reprint__author">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-user">
                        文章作者:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="/about" rel="external nofollow noreferrer">张小菜</a>
                </span>
            </div>
            <div class="reprint__type">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-link">
                        文章链接:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://zhangxiaocainb.gitee.io/2021/09/12/interviewquestion/interviewquestion/">https://zhangxiaocainb.gitee.io/2021/09/12/interviewquestion/interviewquestion/</a>
                </span>
            </div>
            <div class="reprint__notice">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-copyright">
                        版权声明:
                    </i>
                </span>
                <span class="reprint-info">
                    本博客所有文章除特別声明外，均采用
                    <a href="https://creativecommons.org/licenses/by/4.0/deed.zh" rel="external nofollow noreferrer" target="_blank">CC BY 4.0</a>
                    许可协议。转载请注明来源
                    <a href="/about" target="_blank">张小菜</a>
                    !
                </span>
            </div>
        
    </div>

    <script async defer>
      document.addEventListener("copy", function (e) {
        let toastHTML = '<span>复制成功，请遵循本文的转载规则</span><button class="btn-flat toast-action" onclick="navToReprintStatement()" style="font-size: smaller">查看</a>';
        M.toast({html: toastHTML})
      });

      function navToReprintStatement() {
        $("html, body").animate({scrollTop: $("#reprint-statement").offset().top - 80}, 800);
      }
    </script>



            <div class="tag_share" style="display: block;">
                <div class="post-meta__tag-list" style="display: inline-block;">
                    
                        <div class="article-tag">
                            
                                <a href="/tags/%E9%9D%A2%E8%AF%95%E9%A2%98/">
                                    <span class="chip bg-color">面试题</span>
                                </a>
                            
                        </div>
                    
                </div>
                <div class="post_share" style="zoom: 80%; width: fit-content; display: inline-block; float: right; margin: -0.15rem 0;">
                    <link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css">
<div id="article-share">

    
    <div class="social-share" data-sites="twitter,facebook,google,qq,qzone,wechat,weibo,douban,linkedin" data-wechat-qrcode-helper="<p>微信扫一扫即可分享！</p>"></div>
    <script src="/libs/share/js/social-share.min.js"></script>
    

    

</div>

                </div>
            </div>
            
                <style>
    #reward {
        margin: 40px 0;
        text-align: center;
    }

    #reward .reward-link {
        font-size: 1.4rem;
        line-height: 38px;
    }

    #reward .btn-floating:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    #rewardModal {
        width: 320px;
        height: 350px;
    }

    #rewardModal .reward-title {
        margin: 15px auto;
        padding-bottom: 5px;
    }

    #rewardModal .modal-content {
        padding: 10px;
    }

    #rewardModal .close {
        position: absolute;
        right: 15px;
        top: 15px;
        color: rgba(0, 0, 0, 0.5);
        font-size: 1.3rem;
        line-height: 20px;
        cursor: pointer;
    }

    #rewardModal .close:hover {
        color: #ef5350;
        transform: scale(1.3);
        -moz-transform:scale(1.3);
        -webkit-transform:scale(1.3);
        -o-transform:scale(1.3);
    }

    #rewardModal .reward-tabs {
        margin: 0 auto;
        width: 210px;
    }

    .reward-tabs .tabs {
        height: 38px;
        margin: 10px auto;
        padding-left: 0;
    }

    .reward-content ul {
        padding-left: 0 !important;
    }

    .reward-tabs .tabs .tab {
        height: 38px;
        line-height: 38px;
    }

    .reward-tabs .tab a {
        color: #fff;
        background-color: #ccc;
    }

    .reward-tabs .tab a:hover {
        background-color: #ccc;
        color: #fff;
    }

    .reward-tabs .wechat-tab .active {
        color: #fff !important;
        background-color: #22AB38 !important;
    }

    .reward-tabs .alipay-tab .active {
        color: #fff !important;
        background-color: #019FE8 !important;
    }

    .reward-tabs .reward-img {
        width: 210px;
        height: 210px;
    }
</style>

<div id="reward">
    <a href="#rewardModal" class="reward-link modal-trigger btn-floating btn-medium waves-effect waves-light red">赏</a>

    <!-- Modal Structure -->
    <div id="rewardModal" class="modal">
        <div class="modal-content">
            <a class="close modal-close"><i class="fas fa-times"></i></a>
            <h4 class="reward-title">你的赏识是我前进的动力</h4>
            <div class="reward-content">
                <div class="reward-tabs">
                    <ul class="tabs row">
                        <li class="tab col s6 alipay-tab waves-effect waves-light"><a href="#alipay">支付宝</a></li>
                        <li class="tab col s6 wechat-tab waves-effect waves-light"><a href="#wechat">微 信</a></li>
                    </ul>
                    <div id="alipay">
                        <img src="/medias/reward/alipay.jpg" class="reward-img" alt="支付宝打赏二维码">
                    </div>
                    <div id="wechat">
                        <img src="/medias/reward/wechat.jpg" class="reward-img" alt="微信打赏二维码">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        $('.tabs').tabs();
    });
</script>

            
        </div>
    </div>

    

    

    

    

    
        <style>
    .valine-card {
        margin: 1.5rem auto;
    }

    .valine-card .card-content {
        padding: 20px 20px 5px 20px;
    }

    #vcomments textarea {
        box-sizing: border-box;
        background: url("/medias/hmbbverymin.png") 100% 100% no-repeat;
    }

    #vcomments p {
        margin: 2px 2px 10px;
        font-size: 1.05rem;
        line-height: 1.78rem;
    }

    #vcomments blockquote p {
        text-indent: 0.2rem;
    }

    #vcomments a {
        padding: 0 2px;
        color: #4cbf30;
        font-weight: 500;
        text-decoration: none;
    }

    #vcomments img {
        max-width: 100%;
        height: auto;
        cursor: pointer;
    }

    #vcomments ol li {
        list-style-type: decimal;
    }

    #vcomments ol,
    ul {
        display: block;
        padding-left: 2em;
        word-spacing: 0.05rem;
    }

    #vcomments ul li,
    ol li {
        display: list-item;
        line-height: 1.8rem;
        font-size: 1rem;
    }

    #vcomments ul li {
        list-style-type: disc;
    }

    #vcomments ul ul li {
        list-style-type: circle;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    #vcomments table, th, td {
        border: 0;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments h1 {
        font-size: 1.85rem;
        font-weight: bold;
        line-height: 2.2rem;
    }

    #vcomments h2 {
        font-size: 1.65rem;
        font-weight: bold;
        line-height: 1.9rem;
    }

    #vcomments h3 {
        font-size: 1.45rem;
        font-weight: bold;
        line-height: 1.7rem;
    }

    #vcomments h4 {
        font-size: 1.25rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    #vcomments h5 {
        font-size: 1.1rem;
        font-weight: bold;
        line-height: 1.4rem;
    }

    #vcomments h6 {
        font-size: 1rem;
        line-height: 1.3rem;
    }

    #vcomments p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    #vcomments hr {
        margin: 12px 0;
        border: 0;
        border-top: 1px solid #ccc;
    }

    #vcomments blockquote {
        margin: 15px 0;
        border-left: 5px solid #42b983;
        padding: 1rem 0.8rem 0.3rem 0.8rem;
        color: #666;
        background-color: rgba(66, 185, 131, .1);
    }

    #vcomments pre {
        font-family: monospace, monospace;
        padding: 1.2em;
        margin: .5em 0;
        background: #272822;
        overflow: auto;
        border-radius: 0.3em;
        tab-size: 4;
    }

    #vcomments code {
        font-family: monospace, monospace;
        padding: 1px 3px;
        font-size: 0.92rem;
        color: #e96900;
        background-color: #f8f8f8;
        border-radius: 2px;
    }

    #vcomments pre code {
        font-family: monospace, monospace;
        padding: 0;
        color: #e8eaf6;
        background-color: #272822;
    }

    #vcomments pre[class*="language-"] {
        padding: 1.2em;
        margin: .5em 0;
    }

    #vcomments code[class*="language-"],
    pre[class*="language-"] {
        color: #e8eaf6;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }

    #vcomments b,
    strong {
        font-weight: bold;
    }

    #vcomments dfn {
        font-style: italic;
    }

    #vcomments small {
        font-size: 85%;
    }

    #vcomments cite {
        font-style: normal;
    }

    #vcomments mark {
        background-color: #fcf8e3;
        padding: .2em;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }
</style>

<div class="card valine-card" data-aos="fade-up">
    <div class="comment_headling" style="font-size: 20px; font-weight: 700; position: relative; padding-left: 20px; top: 15px; padding-bottom: 5px;">
        <i class="fas fa-comments fa-fw" aria-hidden="true"></i>
        <span>评论</span>
    </div>
    <div id="vcomments" class="card-content" style="display: grid">
    </div>
</div>

<script src="/libs/valine/av-min.js"></script>
<script src="/libs/valine/Valine.min.js"></script>
<script>
    new Valine({
        el: '#vcomments',
        appId: 'iHpJ1K3Qtp3WD6zj6lvHdXc6-MdYXbMMI',
        appKey: 'cbmLFjH9FaWQUdIVOSILOr1s',
        notify: 'true' === 'true',
        verify: 'true' === 'true',
        visitor: 'true' === 'true',
        avatar: 'monsterid',
        pageSize: '10',
        lang: 'zh-cn',
        placeholder: '来，快夸我，快'
    });
</script>

<!--酷Q推送-->


    

    

    

    

    

<article id="prenext-posts" class="prev-next articles">
    <div class="row article-row">
        
        <div class="article col s12 m6" data-aos="fade-up" data-aos="fade-up">
            <div class="article-badge left-badge text-color">
                <i class="far fa-dot-circle"></i>&nbsp;本篇
            </div>
            <div class="card">
                <a href="/2021/09/12/interviewquestion/interviewquestion/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/2.jpg" class="responsive-img" alt="面试笔试题整理">
                        
                        <span class="card-title">面试笔试题整理</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            
                        
                    </div>
                    <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-09-12
                            </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-user fa-fw"></i>
                            张小菜
                            
                        </span>
                    </div>
                </div>

                
                <div class="card-action article-tags">
                    
                    <a href="/tags/%E9%9D%A2%E8%AF%95%E9%A2%98/">
                        <span class="chip bg-color">面试题</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge right-badge text-color">
                下一篇&nbsp;<i class="fas fa-chevron-right"></i>
            </div>
            <div class="card">
                <a href="/2021/09/02/java/javathreadthorough/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/18.jpg" class="responsive-img" alt="Java线程深入">
                        
                        <span class="card-title">Java线程深入</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            
                        
                    </div>
                    <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-09-02
                            </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-bookmark fa-fw icon-category"></i>
                            
                            <a href="/categories/%E5%90%8E%E7%AB%AF/" class="post-category">
                                    后端
                                </a>
                            
                            <a href="/categories/java/" class="post-category">
                                    java
                                </a>
                            
                            
                        </span>
                    </div>
                </div>
                
                <div class="card-action article-tags">
                    
                    <a href="/tags/java%E7%BA%BF%E7%A8%8B/">
                        <span class="chip bg-color">java线程</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
    </div>
</article>

</div>


<script>
    $('#articleContent').on('copy', function (e) {
        // IE8 or earlier browser is 'undefined'
        if (typeof window.getSelection === 'undefined') return;

        var selection = window.getSelection();
        // if the selection is short let's not annoy our users.
        if (('' + selection).length < Number.parseInt('120')) {
            return;
        }

        // create a div outside of the visible area and fill it with the selected text.
        var bodyElement = document.getElementsByTagName('body')[0];
        var newdiv = document.createElement('div');
        newdiv.style.position = 'absolute';
        newdiv.style.left = '-99999px';
        bodyElement.appendChild(newdiv);
        newdiv.appendChild(selection.getRangeAt(0).cloneContents());

        // we need a <pre> tag workaround.
        // otherwise the text inside "pre" loses all the line breaks!
        if (selection.getRangeAt(0).commonAncestorContainer.nodeName === 'PRE' || selection.getRangeAt(0).commonAncestorContainer.nodeName === 'CODE') {
            newdiv.innerHTML = "<pre>" + newdiv.innerHTML + "</pre>";
        }

        var url = document.location.href;
        newdiv.innerHTML += '<br />'
            + '来源: 张小菜<br />'
            + '文章作者: 张小菜<br />'
            + '文章链接: <a href="' + url + '">' + url + '</a><br />'
            + '本文章著作权归作者所有，任何形式的转载都请注明出处。';

        selection.selectAllChildren(newdiv);
        window.setTimeout(function () {bodyElement.removeChild(newdiv);}, 200);
    });
</script>


<!-- 代码块功能依赖 -->
<script type="text/javascript" src="/libs/codeBlock/codeBlockFuction.js"></script>

<!-- 代码语言 -->

<script type="text/javascript" src="/libs/codeBlock/codeLang.js"></script>


<!-- 代码块复制 -->

<script type="text/javascript" src="/libs/codeBlock/codeCopy.js"></script>


<!-- 代码块收缩 -->

<script type="text/javascript" src="/libs/codeBlock/codeShrink.js"></script>


    </div>
    <div id="toc-aside" class="expanded col l3 hide-on-med-and-down">
        <div class="toc-widget card" style="background-color:rgba(255,255,255,0.5);">
            <div class="toc-title"><i class="far fa-list-alt"></i>&nbsp;&nbsp;目录</div>
            <div id="toc-content"></div>
        </div>
    </div>
</div>

<!-- TOC 悬浮按钮. -->

<div id="floating-toc-btn" class="hide-on-med-and-down">
    <a class="btn-floating btn-large bg-color">
        <i class="fas fa-list-ul"></i>
    </a>
</div>


<script src="/libs/tocbot/tocbot.min.js"></script>
<script>
    $(function () {
        tocbot.init({
            tocSelector: '#toc-content',
            contentSelector: '#articleContent',
            headingsOffset: -($(window).height() * 0.4 - 45),
            collapseDepth: Number('0'),
            headingSelector: 'h2, h3, h4'
        });

        // modify the toc link href to support Chinese.
        let i = 0;
        let tocHeading = 'toc-heading-';
        $('#toc-content a').each(function () {
            $(this).attr('href', '#' + tocHeading + (++i));
        });

        // modify the heading title id to support Chinese.
        i = 0;
        $('#articleContent').children('h2, h3, h4').each(function () {
            $(this).attr('id', tocHeading + (++i));
        });

        // Set scroll toc fixed.
        let tocHeight = parseInt($(window).height() * 0.4 - 64);
        let $tocWidget = $('.toc-widget');
        $(window).scroll(function () {
            let scroll = $(window).scrollTop();
            /* add post toc fixed. */
            if (scroll > tocHeight) {
                $tocWidget.addClass('toc-fixed');
            } else {
                $tocWidget.removeClass('toc-fixed');
            }
        });

        
        /* 修复文章卡片 div 的宽度. */
        let fixPostCardWidth = function (srcId, targetId) {
            let srcDiv = $('#' + srcId);
            if (srcDiv.length === 0) {
                return;
            }

            let w = srcDiv.width();
            if (w >= 450) {
                w = w + 21;
            } else if (w >= 350 && w < 450) {
                w = w + 18;
            } else if (w >= 300 && w < 350) {
                w = w + 16;
            } else {
                w = w + 14;
            }
            $('#' + targetId).width(w);
        };

        // 切换TOC目录展开收缩的相关操作.
        const expandedClass = 'expanded';
        let $tocAside = $('#toc-aside');
        let $mainContent = $('#main-content');
        $('#floating-toc-btn .btn-floating').click(function () {
            if ($tocAside.hasClass(expandedClass)) {
                $tocAside.removeClass(expandedClass).hide();
                $mainContent.removeClass('l9');
            } else {
                $tocAside.addClass(expandedClass).show();
                $mainContent.addClass('l9');
            }
            fixPostCardWidth('artDetail', 'prenext-posts');
        });
        
    });
</script>

    

</main>




    <footer class="page-footer bg-color">

    

    

    <div class="container row center-align"
         style="margin-bottom: 15px !important;">
        <div class="col s12 m8 l8 copy-right" style="color: black;font-size: 13px;">
            Copyright&nbsp;&copy;
            
                <span id="year" style="color: black">2021-2023</span>
            
            <!--<span id="year" style="color: black">2021</span>-->
            <a href="/about" target="_blank" style="color: orangered">张小菜</a>
            版权所有
            |&nbsp;Powered by&nbsp;<span style="color: orangered" target="_blank">H</span>
            |&nbsp;公安备案&nbsp;<span style="color: orangered" target="_blank">当中...</span>
            <br>
            <!--计算总字数-->
                &nbsp;<i class="fas fa-chart-area"></i>&nbsp;站点总字数:&nbsp;<span
                        class="white-color" style="color: orangered;">39.3k</span>
            
            
            
                
            
            <!--显示总访问量-->
                <span id="busuanzi_container_site_pv">
                &nbsp;|&nbsp;<i class="far fa-eye"></i>&nbsp;总访问量:&nbsp;
                    <span id="busuanzi_value_site_pv" class="white-color" style="color: orangered;"></span>
            </span>
            
            
                <span id="busuanzi_container_site_uv">
                &nbsp;|&nbsp;<i class="fas fa-users"></i>&nbsp;总访问人数:&nbsp;
                    <span id="busuanzi_value_site_uv" class="white-color" style="color: orangered;"></span><!--总访问人数-->
            </span>
            
            <br>

            <!-- 运行天数提醒. -->
            
                <span id="sitetime"> Loading ...</span>
                <!--<script>
                    var calcSiteTime = function () {
                        var seconds = 1000;
                        var minutes = seconds * 60;
                        var hours = minutes * 60;
                        var days = hours * 24;
                        var years = days * 365;
                        var today = new Date();
                        var startYear = "2021";
                        var startMonth = "8";
                        var startDate = "1";
                        var startHour = "0";
                        var startMinute = "0";
                        var startSecond = "0";
                        var todayYear = today.getFullYear();
                        var todayMonth = today.getMonth() + 1;
                        var todayDate = today.getDate();
                        var todayHour = today.getHours();
                        var todayMinute = today.getMinutes();
                        var todaySecond = today.getSeconds();
                        var t1 = Date.UTC(startYear, startMonth, startDate, startHour, startMinute, startSecond);
                        var t2 = Date.UTC(todayYear, todayMonth, todayDate, todayHour, todayMinute, todaySecond);
                        var diff = t2 - t1;
                        var diffYears = Math.floor(diff / years);
                        var diffDays = Math.floor((diff / days) - diffYears * 365);

                        // 区分是否有年份.
                        var language = 'zh-CN';
                        if (startYear === String(todayYear)) {
                            document.getElementById("year").innerHTML = todayYear;
                            var daysTip = 'This site has been running for ' + diffDays + ' days';
                            if (language === 'zh-CN') {
                                daysTip = '本站已运行 ' + diffDays + ' 天';
                            } else if (language === 'zh-HK') {
                                daysTip = '本站已運行 ' + diffDays + ' 天';
                            }
                            document.getElementById("sitetime").innerHTML = daysTip;
                        } else {
                            document.getElementById("year").innerHTML = startYear + " - " + todayYear;
                            var yearsAndDaysTip = 'This site has been running for ' + diffYears + ' years and '
                                + diffDays + ' days';
                            if (language === 'zh-CN') {
                                yearsAndDaysTip = '本站已运行 ' + diffYears + ' 年 ' + diffDays + ' 天';
                            } else if (language === 'zh-HK') {
                                yearsAndDaysTip = '本站已運行 ' + diffYears + ' 年 ' + diffDays + ' 天';
                            }
                            document.getElementById("sitetime").innerHTML = yearsAndDaysTip;
                        }
                    }

                    calcSiteTime();
                </script>-->
                <script language=javascript>
                  function siteTime() {
                    window.setTimeout("siteTime()", 1000);
                    var seconds = 1000;
                    var minutes = seconds * 60;
                    var hours = minutes * 60;
                    var days = hours * 24;
                    var years = days * 365;
                    var today = new Date();
                    var todayYear = today.getFullYear();
                    var todayMonth = today.getMonth() + 1;
                    var todayDate = today.getDate();
                    var todayHour = today.getHours();
                    var todayMinute = today.getMinutes();
                    var todaySecond = today.getSeconds();
                    /* Date.UTC() -- 返回date对象距世界标准时间(UTC)1970年1月1日午夜之间的毫秒数(时间戳)
                    year - 作为date对象的年份，为4位年份值
                    month - 0-11之间的整数，做为date对象的月份
                    day - 1-31之间的整数，做为date对象的天数
                    hours - 0(午夜24点)-23之间的整数，做为date对象的小时数
                    minutes - 0-59之间的整数，做为date对象的分钟数
                    seconds - 0-59之间的整数，做为date对象的秒数
                    microseconds - 0-999之间的整数，做为date对象的毫秒数 */
                    var t1 = Date.UTC('2021',
                            "8",
                            "1",
                            "0",
                            "0",
                            "0"); //北京时间2018-2-13 00:00:00
                    var t2 = Date.UTC(todayYear, todayMonth, todayDate, todayHour, todayMinute, todaySecond);
                    var diff = t2 - t1;
                    var diffYears = Math.floor(diff / years);
                    var diffDays = Math.floor((diff / days) - diffYears * 365);
                    var diffHours = Math.floor((diff - (diffYears * 365 + diffDays) * days) / hours);
                    var diffMinutes = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours) / minutes);
                    var diffSeconds = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours - diffMinutes * minutes) / seconds);
                    document.getElementById("sitetime").innerHTML = "本站已运行 " +diffYears+" 年 "+diffDays + " 天 " + diffHours + " 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒";
                  }/*因为建站时间还没有一年，就将之注释掉了。需要的可以取消*/
                  siteTime();
                </script>
            
            <br>
            
                <span id="icp"><img src="/medias/icp.png"
                                    style="vertical-align: text-bottom;"/>
                <a href="http://beian.miit.gov.cn/" target="_blank" style="color: black">湘ICP备2021014506号-1</a>
            </span>
            
        </div>
        <div class="col s12 m4 l4 social-link social-statis">
    <a href="https://github.com/ZhangXiaoCaiNB" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
        <i class="fab fa-github" style="color: #00C853;"></i>
    </a>



    <a href="mailto:3292534860@qq.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
        <i class="fas fa-envelope-open"></i>
    </a>



    <a href="https://www.facebook.com/profile.php?id=100066270737195" class="tooltipped" target="_blank" data-tooltip="关注我的Facebook: https://www.facebook.com/profile.php?id=100066270737195" data-position="top" data-delay="50">
        <i class="fab fa-facebook-f" style="color: hotpink"></i>
    </a>



    <a href="https://twitter.com/v6gbBoT36uWweWA" class="tooltipped" target="_blank" data-tooltip="关注我的Twitter: https://twitter.com/v6gbBoT36uWweWA" data-position="top" data-delay="50">
        <i class="fab fa-twitter" style="color: #c6ff00"></i>
    </a>



    <a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=3292534860" class="tooltipped" target="_blank" data-tooltip="QQ联系我: 3292534860" data-position="top" data-delay="50">
        <i class="fab fa-qq" style="color: #00b0ff;"></i>
    </a>







</div>
    </div>
</footer>

<div class="progress-bar"></div>


    <!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title"><i class="fas fa-search"></i>&nbsp;&nbsp;搜索</span>
            <input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字"
                   class="search-input">
        </div>
        <div id="searchResult"></div>
    </div>
</div>

<script type="text/javascript">
$(function () {
    var searchFunc = function (path, search_id, content_id) {
        'use strict';
        $.ajax({
            url: path,
            dataType: "xml",
            success: function (xmlResponse) {
                // get the contents from search data
                var datas = $("entry", xmlResponse).map(function () {
                    return {
                        title: $("title", this).text(),
                        content: $("content", this).text(),
                        url: $("url", this).text()
                    };
                }).get();
                var $input = document.getElementById(search_id);
                var $resultContent = document.getElementById(content_id);
                $input.addEventListener('input', function () {
                    var str = '<ul class=\"search-result-list\">';
                    var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
                    $resultContent.innerHTML = "";
                    if (this.value.trim().length <= 0) {
                        return;
                    }
                    // perform local searching
                    datas.forEach(function (data) {
                        var isMatch = true;
                        var data_title = data.title.trim().toLowerCase();
                        var data_content = data.content.trim().replace(/<[^>]+>/g, "").toLowerCase();
                        var data_url = data.url;
                        data_url = data_url.indexOf('/') === 0 ? data.url : '/' + data_url;
                        var index_title = -1;
                        var index_content = -1;
                        var first_occur = -1;
                        // only match artiles with not empty titles and contents
                        if (data_title !== '' && data_content !== '') {
                            keywords.forEach(function (keyword, i) {
                                index_title = data_title.indexOf(keyword);
                                index_content = data_content.indexOf(keyword);
                                if (index_title < 0 && index_content < 0) {
                                    isMatch = false;
                                } else {
                                    if (index_content < 0) {
                                        index_content = 0;
                                    }
                                    if (i === 0) {
                                        first_occur = index_content;
                                    }
                                }
                            });
                        }
                        // show search results
                        if (isMatch) {
                            str += "<li><a href='" + data_url + "' class='search-result-title'>" + data_title + "</a>";
                            var content = data.content.trim().replace(/<[^>]+>/g, "");
                            if (first_occur >= 0) {
                                // cut out 100 characters
                                var start = first_occur - 20;
                                var end = first_occur + 80;
                                if (start < 0) {
                                    start = 0;
                                }
                                if (start === 0) {
                                    end = 100;
                                }
                                if (end > content.length) {
                                    end = content.length;
                                }
                                var match_content = content.substr(start, end);
                                // highlight all keywords
                                keywords.forEach(function (keyword) {
                                    var regS = new RegExp(keyword, "gi");
                                    match_content = match_content.replace(regS, "<em class=\"search-keyword\">" + keyword + "</em>");
                                });

                                str += "<p class=\"search-result\">" + match_content + "...</p>"
                            }
                            str += "</li>";
                        }
                    });
                    str += "</ul>";
                    $resultContent.innerHTML = str;
                });
            }
        });
    };

    searchFunc('/search.xml', 'searchInput', 'searchResult');
});
</script>

    <!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fas fa-arrow-up"></i>
    </a>
</div>


    <script src="/libs/materialize/materialize.min.js"></script>
    <script src="/libs/masonry/masonry.pkgd.min.js"></script>
    <script src="/libs/aos/aos.js"></script>
    <script src="/libs/scrollprogress/scrollProgress.min.js"></script>
    <script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
    <script src="/js/matery.js"></script>

    <!-- Baidu Analytics -->

    <!-- Baidu Push -->

<script>
    (function () {
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        } else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

    
    
    <script async src="/libs/others/busuanzi.pure.mini.js"></script>
    

    

    

    <!--腾讯兔小巢-->
    
    

    
    
    <script type="text/javascript" size="150" alpha='0.6'
        zIndex="-1" src="/libs/background/ribbon.min.js" async="async"></script>
    

    
    <script type="text/javascript" src="/libs/background/ribbon-dynamic.js" async="async"></script>
    

    
    <script src="/libs/instantpage/instantpage.js" type="module"></script>
    

    

    <!--title标签变换文字块-->
    <script type="text/javascript">
      var OriginTitile = document.title,
          st;
      document.addEventListener("visibilitychange", function () {
        document.hidden ? (document.title = "看不见我🙈~看不见我🙈~", clearTimeout(st)) : (document.title =
            "(๑•̀ㅂ•́) ✧被发现了～", st = setTimeout(function () {
          document.title = OriginTitile
        }, 3e3))
      })
    </script>

<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"log":false,"model":{"jsonPath":"/live2dw/assets/hijiki.model.json"},"display":{"position":"left","width":70,"height":140},"mobile":{"show":true},"react":{"opacity":0.7}});</script></body>

</html>
